package com.aaa.dao;

import com.aaa.entity.Doctor;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface DoctorDao {
    List<Map> findDoctor(@Param("dynName") String dynName, @Param("docName")String docName, @Param("grand")String grand);
    Map findDoctorById(int docId);
    List<Map> findDoctorDesc();
    int updateDoctor(Doctor doctor);
    int addDoctor(Doctor doctor);
    int doctorDel(int docId);
    int checkDoctor(@Param("fk_cid") int fk_cid,@Param("fk_dynId")int fk_dynId,
                    @Param("docSurname")String docSurname,@Param("docName")String docName);//检测医家是否重复，返回重复的个数
    List<Map> findDoctorRepeat();
}
